package router

import (
	"api-gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func Distribution(v1 *gin.RouterGroup) {
	distribution := v1.Group("/distribution")
	{
		distribution.POST("/addData", api.AddDistributionData)                  //设置表添加
		distribution.POST("/add/poster", api.AddPosterDistribution)             //二级分析海报模板添加
		distribution.GET("/poster/show", api.PosterShowDistribution)            //二级分销海报展示
		distribution.GET("/sort", api.DistributionSort)                         //二级分销排序
		distribution.GET("/two/detail", api.TwoDetailDistribution)              //二级分销下下级查询
		distribution.GET("/two/process", api.TwoProcessDetailDistribution)      //二级分销查询下下级过程查询
		distribution.POST("/user/qu/code", api.AddUserQuCodePosterDistribution) //二级分销用户海报生成
		distribution.GET("/show/run/water", api.ListDistributionRunWater)       //二级分销流水表查询
	}
}
